package com.yundasys.lab10designpattern.decorator;

/**
 * @author jiangta
 * @version 1.0
 * @date 2021/3/13 1:41 下午
 */
public class CompetitorDecoratorB extends CompetitorDecorator {

    public CompetitorDecoratorB(Competitor competitor) {
        super(competitor);
    }

    @Override
    public void sing() {
        this.playMusic();
        super.sing();
    }

    private void playMusic() {
        System.out.println("播放背景音乐......");
    }
}
